package com.szp.lagou.mq.rocketmq.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@ConfigurationProperties("seckilltime")
public class SecKillTimeProperties {
    String startTime;
//    Date startTime;
    int duration;

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    @Override
    public String toString() {
        return "SecKillTimeProperties{" +
                "startTime=" + startTime +
                ", duration=" + duration +
                '}';
    }
}
